﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using Dqaqs.Data;

namespace Dqaqs.Services.ServiceContracts
{
	[ServiceContract]
	public interface IDataSourceService
	{
		[OperationContract]
		void NewDataSource(DataSource dataSource);

		[OperationContract]
		DataSource GetDataSource(int id);

		[OperationContract]
		void DeleteDataSource(int id);

		[OperationContract]
		IEnumerable<DataSource> ListDataSources(Guid projectId);

		[OperationContract]
		void UpdateDataSource(DataSource dataSource);

		[OperationContract]
		bool CheckDataSourceExists(DataSource dataSource);

		[OperationContract]
		void UploadData(UploadMessage uploadMessage);
	}
}
